﻿using System.Windows.Forms;

namespace ReportWizard.Forms
{
    public partial class ProgressForm : Form
    {
        public ProgressForm(int steps)
        {
            InitializeComponent();
            progressProcess.Maximum = steps + 1;
        }

        public void Increment()
        {
            progressProcess.Increment(1);
            Invalidate();
            Update();
        }

        public void Release()
        {

            Invoke(new MethodInvoker(Dispose));
        }
    }
}
